package org.springframework.demo3;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo3 {

	public static void main(String[] args) {
		/**
		 * Context高级容器面向开发者
		 */
		//基于注解驱动  ClassPathXmlApplicationContext
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config3.class);
		UserService bean = context.getBean(UserService.class);
		bean.sayHello();
	}
}
